<?php
/* @var $this CategorysController */
/* @var $model Categorys */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'category_parent'); ?>
		<?php echo $form->dropDownList($model, 'category_parent', array('0' => '一级分类') + CHtml::listData(Categorys::model()->findAll('category_parent'), 'id', 'category_name')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'category_model'); ?>
		<?php echo $form->dropDownList($model, 'category_model', array(''=>'')+$model->category_model_array); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'category_type'); ?>
		<?php echo $form->dropDownList($model, 'category_type', array(''=>'')+$model->category_type_array); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'category_name'); ?>
		<?php echo $form->textField($model,'category_name',array('size'=>60,'maxlength'=>255)); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->